{% load static %}
{% load helpers %}
{% load plugins %}
<link rel="stylesheet" id="template-theme"
      href="{% url 'template_css' %}">
<link rel="stylesheet"
      href="{% static 'dist/css/nautobot.css' %}"
      onerror="window.location='{% url 'media_failure' %}?filename=dist/css/nautobot.css'">
<link rel="stylesheet"
      href="{% static 'dist/css/materialdesignicons.css' %}"
      onerror="window.location='{% url 'media_failure' %}?filename=dist/css/materialdesignicons.css'">
{% with cookie_theme=request.COOKIES|get_item:'theme' %}
    {% if not cookie_theme or cookie_theme == 'light' %}
        <link rel="stylesheet"
              href="{% static 'dist/css/github.min.css' %}"
              onerror="window.location='{% url 'media_failure' %}?filename=dist/css/github.min.css'"
              {% if not cookie_theme %}media="not (prefers-color-scheme: dark)"{% endif %}>
    {% endif %}
    {% if not cookie_theme or cookie_theme == 'dark' %}
        <link rel="stylesheet"
              href="{% static 'dist/css/github-dark.min.css' %}"
              onerror="window.location='{% url 'media_failure' %}?filename=dist/css/github-dark.min.css'"
              {% if not cookie_theme %}media="(prefers-color-scheme: dark)"{% endif %}>
    {% endif %}
{% endwith %}
{% if settings.BRANDING_FILEPATHS.css %}
    <link rel="stylesheet" id="custom-css" href="{% custom_branding_or_static 'css' None %}">
{% endif %}
<link rel="apple-touch-icon" sizes="180x180" href="{% custom_branding_or_static 'icon_180' 'img/nautobot_icon_180x180.png' %}">
<link rel="icon" type="image/png" sizes="32x32" href="{% custom_branding_or_static 'icon_32' 'img/nautobot_icon_32x32.png' %}">
<link rel="icon" type="image/png" sizes="16x16" href="{% custom_branding_or_static 'icon_16' 'img/nautobot_icon_16x16.png' %}">
<link rel="icon" type="image/png" sizes="192x192" href="{% custom_branding_or_static 'icon_192' 'img/nautobot_icon_192x192.png' %}">
<link rel="mask-icon" type="image/png" color="#0097ff" href="{% custom_branding_or_static 'icon_mask' 'img/nautobot_icon_monochrome.png' %}">
<link rel="shortcut icon" href="{% custom_branding_or_static 'favicon' 'img/favicon.ico' %}">
<meta name="msapplication-TileColor" content="#2d89ef">
<meta name="theme-color" content="#ffffff">
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
{% if settings.PUBLISH_ROBOTS_TXT %}
    <meta name="robots" content="noindex, nofollow">
{% endif %}
